/**
 * @fileOverview svg容器
 */

module.exports = gg.createClass({
    attributes: {
        points: {
            label: '顶点',
            type: 'datatype.String',
            defaultValue: 0,
            setter: function(v) {
                this.node.attr('points', v);
            },
            getter: function() {
                return this.node.attr('points');
            }
        }
    },
    methods: {
        /**
         * @override
         */
        createNode: function() {
            var el = $(this.createElement('polyline'));
            el.attr('style', 'stroke:rgb(99,99,99);stroke-width:2');
            return el;
        }
    },
    events: {}
}, 'ui.svg.Shape', []);